/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Settings;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.concurrent.ConcurrentHashMap;

 /*
 * @Author sabbir
 */
public class ServerData {
        public static int data_lock=1;
	public static ConcurrentHashMap<String, String> settings=new ConcurrentHashMap<String,String>();
        public static ArrayList<TestInfo> testSettingsObjects = null;
        public static ConcurrentHashMap<String, Long> sessionMaps = new ConcurrentHashMap<String, Long>();
        public static  HashSet<Integer> protocolList= null;
	static{
		
	}
        public static ArrayList<TestInfo> getTestInfolist()
        {
            ArrayList<TestInfo> testSettingsObjectsNew = new ArrayList<TestInfo>();
            if(testSettingsObjects == null)
                return testSettingsObjectsNew;
            while(data_lock==1);
            
            for(int i=0;i<testSettingsObjects.size();i++)
                testSettingsObjectsNew.add(testSettingsObjects.get(i));
            return testSettingsObjectsNew;
        }

}
